package com.xmut.rc.mapper;

import com.xmut.rc.entity.SysPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @description: 权限Mapper
 * @author: XS
 * @date: 2022/5/23
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {
    @Select("select * from rc_sys_permission where parent_id = #{parentId}")
    List<SysPermission> getChildrenPermission(String parentId);
}
